<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>旋转</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .demo {
            width: 155px;
            height: 220px;
            position: relative;
            margin: 300px auto;
        }

        .demo > img {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            transition: transform 2s;
            transform-origin: right top;
        }

        .demo:hover > img:nth-of-type(1) {
            transform: rotate(60deg);
        }

        .demo:hover > img:nth-of-type(2) {
            transform: rotate(120deg);
        }

        .demo:hover > img:nth-of-type(3) {
            transform: rotate(180deg);
        }

        .demo:hover > img:nth-of-type(4) {
            transform: rotate(240deg);
        }

        .demo:hover > img:nth-of-type(5) {
            transform: rotate(300deg);
        }

        .demo:hover > img:nth-of-type(6) {
            transform: rotate(360deg);
        }
    </style>
</head>
<body>
<div class="demo">
    <img src="pk1.png" alt="">
    <img src="pk2.png" alt="">
    <img src="pk1.png" alt="">
    <img src="pk2.png" alt="">
    <img src="pk1.png" alt="">
    <img src="pk2.png" alt="">
</div>
</body>
</html>